import React from 'react';
import { SvgProps } from 'react-native-svg';

interface SvgIconProps extends Omit<SvgProps, 'width' | 'height'> {
  size?: number;
  Icon: React.FC<SvgProps>;
}

export const SvgIcon: React.FC<SvgIconProps> = ({ 
  size = 24, 
  Icon,
  color = '#222',
  ...props 
}) => {
  return (
    <Icon 
      width={size} 
      height={size} 
      color={color}
      {...props}
    />
  );
}; 